We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70d80ff commit f6eb0b7Copy full SHA for f6eb0b7
src/examples/bendy/context.3dm
33.9 KB
src/examples/bendy/index.html
@@ -79,6 +79,7 @@
79
rhino = m
80
81
init()
82
+ loadContext()
83
compute()
84
})
85
@@ -160,6 +161,15 @@
160
161
animate()
162
}
163
164
+function loadContext() {
165
+ loader.load('context.3dm', function (object) {
166
+ object.traverse(child => {
167
+ child.name = 'context'
168
+ })
169
+ scene.add(object)
170
171
+}
172
+
173
/**
174
* Call appserver
175
*/
@@ -241,7 +251,7 @@
241
251
242
252
// clear objects from scene. do this here to avoid blink
243
253
scene.traverse(child => {
244
- if (!child.isLight) {
254
+ if (!child.isLight && child.name !== 'context') {
245
255
scene.remove(child)
246
256
247
257
0 commit comments