diff --git a/cpp/SampleRdkChangeQueue/CustomChangeQueue.cpp b/cpp/SampleRdkChangeQueue/CustomChangeQueue.cpp index 2b483569..0d51b96c 100644 --- a/cpp/SampleRdkChangeQueue/CustomChangeQueue.cpp +++ b/cpp/SampleRdkChangeQueue/CustomChangeQueue.cpp @@ -85,9 +85,10 @@ void CustomChangeQueue::ApplyMeshInstanceChanges(const ON_SimpleArrayMeshIndex(); ON_Xform xform = instance->InstanceXform(); ON_3dPoint p = ON_3dPoint::Origin; + ON_3dVector zup = ON_3dVector::ZAxis; p.Transform(xform); - + zup.Transform(xform); // the material ID can be used to query the actual material from the ChangeQueue. In Rhino you can have the situation where // the same mesh has different materials. This happens especially with block instances. To illustrate: In Rhino add a _Box. // Set the box material to "Use Object Parent". Now create a _Block out of the box. Duplicate the instance that is placed in @@ -101,7 +102,7 @@ void CustomChangeQueue::ApplyMeshInstanceChanges(const ON_SimpleArray