Shading: Add object color to Object Info node.
The object color property is added as an additional output in the Object Info node. Reviewers: brecht Differential Revision: https://developer.blender.org/D5554
This commit is contained in:
@@ -444,6 +444,7 @@ Object *BlenderSync::sync_object(BL::Depsgraph &b_depsgraph,
|
||||
if (object_updated || (object->mesh && object->mesh->need_update) || tfm != object->tfm) {
|
||||
object->name = b_ob.name().c_str();
|
||||
object->pass_id = b_ob.pass_index();
|
||||
object->color = get_float3(b_ob.color());
|
||||
object->tfm = tfm;
|
||||
object->motion.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user