fix(rhino): CNX-245 render materials inherited from layer bug (#127)
This commit is contained in:
+2
-2
@@ -178,9 +178,9 @@ public class RhinoHostObjectBuilder : IHostObjectBuilder
|
||||
var objectId = obj.applicationId ?? obj.id; // POC: assuming objects have app ids for this to work?
|
||||
|
||||
// 3: colors and materials
|
||||
var matIndex = _materialManager.ObjectIdAndMaterialIndexMap.TryGetValue(objectId, out int mIndex)
|
||||
int? matIndex = _materialManager.ObjectIdAndMaterialIndexMap.TryGetValue(objectId, out int mIndex)
|
||||
? mIndex
|
||||
: 0;
|
||||
: null;
|
||||
Color? objColor = _colorManager.ObjectColorsIdMap.TryGetValue(objectId, out Color color) ? color : null;
|
||||
|
||||
// 4: actually bake
|
||||
|
||||
Reference in New Issue
Block a user