whats the difference between this two files?
test_ok.3dm (285.3 KB)
test_error.3dm (295.2 KB)
the “test_ok” was created in rhino6 and than opened and modified in rhino7
the “test_error” was created in rhino7
“test_ok” is loaded with rhino3dm.js and rhino3dm.wasm (version 14.0) without problems but the “test_error” give me this error:
TypeError: Cannot read property 'value' of undefined
in this function
function __embind_register_enum(rawType, name, size, isSigned) {
var shift = getShiftFromSize(size);
name = readLatin1String(name);
function ctor() {}
ctor.values = {};
registerType(rawType, {
name: name,
constructor: ctor,
"fromWireType": function(c) {
return this.constructor.values[c]
},
"toWireType": function(destructors, c) {
return c.value
},
"argPackAdvance": 8,
"readValueFromPointer": enumReadValueFromPointer(name, shift, isSigned),
destructorFunction: null
});
exposePublicSymbol(name, ctor)
on the code “toWireType” the destructors are an empty list and c is undefinded
edit: if i changed the rendermode to “raytrace” and back to “shaded” bevor saving the “test_error” is working too. Why is this?