mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:51:20 +02:00
Consolidating differences from master
This commit is contained in:
parent
4409e59682
commit
78be935e1a
2 changed files with 45 additions and 0 deletions
|
@ -0,0 +1,40 @@
|
||||||
|
//
|
||||||
|
// InterfaceActivity.java
|
||||||
|
// gvr-interface/java
|
||||||
|
//
|
||||||
|
// Created by Stephen Birarda on 1/26/15.
|
||||||
|
// Copyright 2015 High Fidelity, Inc.
|
||||||
|
//
|
||||||
|
// Distributed under the Apache License, Version 2.0.
|
||||||
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
//
|
||||||
|
|
||||||
|
package io.highfidelity.gvrinterface;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.net.Uri;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.view.WindowManager;
|
||||||
|
import org.qtproject.qt5.android.bindings.QtActivity;
|
||||||
|
|
||||||
|
public class InterfaceActivity extends QtActivity {
|
||||||
|
|
||||||
|
public static native void handleHifiURL(String hifiURLString);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||||
|
|
||||||
|
// Get the intent that started this activity in case we have a hifi:// URL to parse
|
||||||
|
Intent intent = getIntent();
|
||||||
|
if (intent.getAction() == Intent.ACTION_VIEW) {
|
||||||
|
Uri data = intent.getData();
|
||||||
|
|
||||||
|
if (data.getScheme().equals("hifi")) {
|
||||||
|
handleHifiURL(data.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -865,6 +865,11 @@ const AnimPoseVec& AnimInverseKinematics::evaluate(const AnimVariantMap& animVar
|
||||||
|
|
||||||
//virtual
|
//virtual
|
||||||
const AnimPoseVec& AnimInverseKinematics::overlay(const AnimVariantMap& animVars, const AnimContext& context, float dt, AnimVariantMap& triggersOut, const AnimPoseVec& underPoses) {
|
const AnimPoseVec& AnimInverseKinematics::overlay(const AnimVariantMap& animVars, const AnimContext& context, float dt, AnimVariantMap& triggersOut, const AnimPoseVec& underPoses) {
|
||||||
|
#ifdef Q_OS_ANDROID
|
||||||
|
// disable IK on android
|
||||||
|
return underPoses;
|
||||||
|
#endif
|
||||||
|
|
||||||
// allows solutionSource to be overridden by an animVar
|
// allows solutionSource to be overridden by an animVar
|
||||||
auto solutionSource = animVars.lookup(_solutionSourceVar, (int)_solutionSource);
|
auto solutionSource = animVars.lookup(_solutionSourceVar, (int)_solutionSource);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue