Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Commit 4b24cff

Browse files
Sceneform SDK v1.9.0
1 parent d7a504a commit 4b24cff

File tree

22 files changed

+7332
-7325
lines changed

22 files changed

+7332
-7325
lines changed

LICENSE

+7,301
Large diffs are not rendered by default.

NOTICE

-7,300
This file was deleted.

samples/animation/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ dependencies {
2626
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
2727

2828
// Sceneform
29-
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
30-
implementation "com.google.ar.sceneform:animation:1.8.0"
29+
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"
30+
implementation "com.google.ar.sceneform:animation:1.9.0"
3131
implementation 'com.android.support:design:28.0.0'
3232
}
3333

samples/animation/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
}
2424
dependencies {
2525
classpath 'com.android.tools.build:gradle:3.3.0'
26-
classpath 'com.google.ar.sceneform:plugin:1.8.0'
26+
classpath 'com.google.ar.sceneform:plugin:1.9.0'
2727
// NOTE: Do not place your application dependencies here; they belong
2828
// in the individual module build.gradle files
2929
}

samples/augmentedfaces/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ android {
4242
dependencies {
4343

4444
// Provides ArFragment, and other Sceneform UX resources:
45-
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
45+
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"
4646

4747
// Use the Sceneform UX Package built from the source files included in the sceneformux folder.
4848
//api project(":sceneformux")
4949

5050
// Alternatively, use ArSceneView without the UX dependency.
51-
//implementation "com.google.ar.sceneform:core:1.8.0"
51+
//implementation "com.google.ar.sceneform:core:1.9.0"
5252

5353
implementation "com.android.support:appcompat-v7:28.0.0"
5454
}

samples/augmentedfaces/app/src/main/java/com/google/ar/sceneform/samples/augmentedfaces/AugmentedFacesActivity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ protected void onCreate(Bundle savedInstanceState) {
139139
public static boolean checkIsSupportedDeviceOrFinish(final Activity activity) {
140140
if (ArCoreApk.getInstance().checkAvailability(activity)
141141
== ArCoreApk.Availability.UNSUPPORTED_DEVICE_NOT_CAPABLE) {
142-
Log.e(TAG, "Augmented Faces requires ArCore.");
143-
Toast.makeText(activity, "Augmented Faces requires ArCore", Toast.LENGTH_LONG).show();
142+
Log.e(TAG, "Augmented Faces requires ARCore.");
143+
Toast.makeText(activity, "Augmented Faces requires ARCore", Toast.LENGTH_LONG).show();
144144
activity.finish();
145145
return false;
146146
}

samples/augmentedfaces/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
}
2424
dependencies {
2525
classpath 'com.android.tools.build:gradle:3.3.0'
26-
classpath 'com.google.ar.sceneform:plugin:1.8.0'
26+
classpath 'com.google.ar.sceneform:plugin:1.9.0'
2727
// NOTE: Do not place your application dependencies here; they belong
2828
// in the individual module build.gradle files
2929
}

samples/augmentedimage/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dependencies {
4848
implementation 'com.android.support:design:28.0.0'
4949

5050
// Use the Sceneform UX Package pre-built from Maven.
51-
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
51+
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"
5252

5353
// Use the Sceneform UX Package built from the source files included in the sceneformux folder.
5454
//api project(":sceneformux")

samples/augmentedimage/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
}
2424
dependencies {
2525
classpath 'com.android.tools.build:gradle:3.3.0'
26-
classpath 'com.google.ar.sceneform:plugin:1.8.0'
26+
classpath 'com.google.ar.sceneform:plugin:1.9.0'
2727
// NOTE: Do not place your application dependencies here; they belong
2828
// in the individual module build.gradle files
2929
}

samples/chromakeyvideo/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dependencies {
4444
implementation "com.android.support:design:28.0.0"
4545

4646
// Use the Sceneform UX Package pre-built from Maven.
47-
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
47+
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"
4848

4949
// Use the Sceneform UX Package built from the source files included in the sceneformux folder.
5050
//api project(":sceneformux")

samples/chromakeyvideo/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
}
2424
dependencies {
2525
classpath 'com.android.tools.build:gradle:3.3.0'
26-
classpath 'com.google.ar.sceneform:plugin:1.8.0'
26+
classpath 'com.google.ar.sceneform:plugin:1.9.0'
2727
// NOTE: Do not place your application dependencies here; they belong
2828
// in the individual module build.gradle files
2929
}

samples/hellosceneform/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ android {
4242
dependencies {
4343

4444
// Provides ArFragment, and other Sceneform UX resources:
45-
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
45+
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"
4646

4747
// Use the Sceneform UX Package built from the source files included in the sceneformux folder.
4848
//api project(":sceneformux")
4949

5050
// Alternatively, use ArSceneView without the UX dependency.
51-
//implementation "com.google.ar.sceneform:core:1.8.0"
51+
//implementation "com.google.ar.sceneform:core:1.9.0"
5252

5353
implementation "com.android.support:appcompat-v7:28.0.0"
5454
}

samples/hellosceneform/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
}
2424
dependencies {
2525
classpath 'com.android.tools.build:gradle:3.3.0'
26-
classpath 'com.google.ar.sceneform:plugin:1.8.0'
26+
classpath 'com.google.ar.sceneform:plugin:1.9.0'
2727
// NOTE: Do not place your application dependencies here; they belong
2828
// in the individual module build.gradle files
2929
}

samples/solarsystem/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ android {
4040
}
4141

4242
dependencies {
43-
implementation "com.google.ar.sceneform:core:1.8.0"
43+
implementation "com.google.ar.sceneform:core:1.9.0"
4444
implementation "com.android.support:appcompat-v7:28.0.0"
4545
implementation "com.android.support:design:28.0.0"
4646
}

samples/solarsystem/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
}
2424
dependencies {
2525
classpath 'com.android.tools.build:gradle:3.3.0'
26-
classpath 'com.google.ar.sceneform:plugin:1.8.0'
26+
classpath 'com.google.ar.sceneform:plugin:1.9.0'
2727
// NOTE: Do not place your application dependencies here; they belong
2828
// in the individual module build.gradle files
2929
}

samples/videorecording/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ android {
4242
dependencies {
4343

4444
// Provides ArFragment, and other Sceneform UX resources:
45-
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.8.0"
45+
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.9.0"
4646

4747

4848
// Use the Sceneform UX Package built from the source files included in the sceneformux folder.
4949
//api project(":sceneformux")
5050

5151
// Alternatively, use ArSceneView without the UX dependency.
52-
//implementation "com.google.ar.sceneform:core:1.8.0"
52+
//implementation "com.google.ar.sceneform:core:1.9.0"
5353
implementation 'com.android.support:appcompat-v7:28.0.0'
5454
implementation 'com.android.support:design:28.0.0'
5555
implementation 'com.android.support.constraint:constraint-layout:1.1.3'

samples/videorecording/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
}
2424
dependencies {
2525
classpath 'com.android.tools.build:gradle:3.3.0'
26-
classpath 'com.google.ar.sceneform:plugin:1.8.0'
26+
classpath 'com.google.ar.sceneform:plugin:1.9.0'
2727
// NOTE: Do not place your application dependencies here; they belong
2828
// in the individual module build.gradle files
2929
}

sceneformux/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
}
2424
dependencies {
2525
classpath 'com.android.tools.build:gradle:3.3.0'
26-
classpath 'com.google.ar.sceneform:plugin:1.8.0'
26+
classpath 'com.google.ar.sceneform:plugin:1.9.0'
2727
// NOTE: Do not place your application dependencies here; they belong
2828
// in the individual module build.gradle files
2929
}

sceneformux/ux/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ android {
3939
}
4040

4141
dependencies {
42-
api "com.google.ar.sceneform:core:1.8.0"
42+
api "com.google.ar.sceneform:core:1.9.0"
4343
implementation "com.android.support:appcompat-v7:28.0.0"
4444
implementation "com.android.support:design:28.0.0"
4545
}

sceneformux/ux/src/main/java/com/google/ar/sceneform/ux/AugmentedFaceNode.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
import com.google.ar.sceneform.rendering.Texture;
3838
import com.google.ar.sceneform.rendering.Vertex;
3939
import com.google.ar.sceneform.rendering.Vertex.UvCoordinate;
40-
import java.nio.CharBuffer;
4140
import java.nio.FloatBuffer;
41+
import java.nio.ShortBuffer;
4242
import java.util.ArrayList;
4343
import java.util.concurrent.ExecutionException;
4444

@@ -372,7 +372,7 @@ private void updateFaceMeshVerticesAndTriangles() {
372372
vertices.remove(vertices.size() - 1);
373373
}
374374

375-
CharBuffer indicesBuffer = augmentedFace.getMeshTriangleIndices();
375+
ShortBuffer indicesBuffer = augmentedFace.getMeshTriangleIndices();
376376
indicesBuffer.rewind();
377377

378378
// Only do this if the size doesn't match.

sceneformux/ux/src/main/java/com/google/ar/sceneform/ux/PinchGesture.java

+6
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ public float gapDeltaInches() {
7171
return gesturePointersUtility.pixelsToInches(getGapDelta());
7272
}
7373

74+
/** Cancels the gesture in progress. */
75+
@Override
76+
public void cancel() {
77+
super.cancel();
78+
}
79+
7480
@Override
7581
protected boolean canStart(HitTestResult hitTestResult, MotionEvent motionEvent) {
7682
if (gesturePointersUtility.isPointerIdRetained(pointerId1)

sceneformux/ux/src/main/java/com/google/ar/sceneform/ux/ScaleController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void onActivated(Node node) {
8787

8888
@Override
8989
public void onUpdated(Node node, FrameTime frameTime) {
90-
if (isTransforming()) {
90+
if (isTransforming() || !isEnabled()) {
9191
return;
9292
}
9393

0 commit comments

Comments
 (0)