[Bf-blender-cvs] [865a0de03d] clay-engine: Fixup for rB6cdb3845 (Added collection props getter/setter)

Dalai Felinto noreply at git.blender.org
Fri Feb 3 15:05:17 CET 2017


Commit: 865a0de03d94ea1906c9b515933bc96aaf0c8cd0
Author: Dalai Felinto
Date:   Fri Feb 3 14:44:08 2017 +0100
Branches: clay-engine
https://developer.blender.org/rB865a0de03d94ea1906c9b515933bc96aaf0c8cd0

Fixup for rB6cdb3845 (Added collection props getter/setter)

===================================================================

M	source/blender/blenkernel/intern/layer.c

===================================================================

diff --git a/source/blender/blenkernel/intern/layer.c b/source/blender/blenkernel/intern/layer.c
index 7e4d78a454..b11edf96bb 100644
--- a/source/blender/blenkernel/intern/layer.c
+++ b/source/blender/blenkernel/intern/layer.c
@@ -758,6 +758,7 @@ void BKE_collection_engine_property_value_set_int(CollectionEngineSettings *ces,
 	CollectionEnginePropertyInt *prop;
 	prop = (CollectionEnginePropertyInt *)BLI_findstring(&ces->properties, name, offsetof(CollectionEngineProperty, name));
 	prop->value = value;
+	prop->data.flag |= COLLECTION_PROP_USE;
 }
 
 void BKE_collection_engine_property_value_set_float(CollectionEngineSettings *ces, const char *name, float value)
@@ -765,6 +766,7 @@ void BKE_collection_engine_property_value_set_float(CollectionEngineSettings *ce
 	CollectionEnginePropertyFloat *prop;
 	prop = (CollectionEnginePropertyFloat *)BLI_findstring(&ces->properties, name, offsetof(CollectionEngineProperty, name));
 	prop->value = value;
+	prop->data.flag |= COLLECTION_PROP_USE;
 }
 
 /* ---------------------------------------------------------------------- */




More information about the Bf-blender-cvs mailing list