From ab415f2ee66854f2e226b10321c48e7d9cd6feee Mon Sep 17 00:00:00 2001 From: norangebit Date: Sat, 12 Jan 2019 11:40:39 +0100 Subject: [PATCH] add readme --- runtime-building-models/README.md | 3 +++ .../src/main/java/it/norangeb/runtimebuildingmodels/Util.kt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 runtime-building-models/README.md diff --git a/runtime-building-models/README.md b/runtime-building-models/README.md new file mode 100644 index 0000000..f4048c1 --- /dev/null +++ b/runtime-building-models/README.md @@ -0,0 +1,3 @@ +# Runtime building models + +An ARCore and Sceneform project that build basic models, like sphere and cube, at runtime and place these into the scene. diff --git a/runtime-building-models/app/src/main/java/it/norangeb/runtimebuildingmodels/Util.kt b/runtime-building-models/app/src/main/java/it/norangeb/runtimebuildingmodels/Util.kt index db1c1ca..4e60fe1 100644 --- a/runtime-building-models/app/src/main/java/it/norangeb/runtimebuildingmodels/Util.kt +++ b/runtime-building-models/app/src/main/java/it/norangeb/runtimebuildingmodels/Util.kt @@ -88,7 +88,7 @@ fun changeColorOfMaterial( color: Color, renderable: Renderable ) { - val newColor = buildMaterial(context, color) { + buildMaterial(context, color) { renderable.material = it } }