Merge branch 'timoore/effects-anim-rebase' into next
This commit is contained in:
@@ -829,8 +829,7 @@ struct UniformBuilder :public PassAttributeBuilder
|
|||||||
return;
|
return;
|
||||||
const SGPropertyNode* nameProp = prop->getChild("name");
|
const SGPropertyNode* nameProp = prop->getChild("name");
|
||||||
const SGPropertyNode* typeProp = prop->getChild("type");
|
const SGPropertyNode* typeProp = prop->getChild("type");
|
||||||
const SGPropertyNode* valProp
|
const SGPropertyNode* valProp = prop->getChild("value");
|
||||||
= getEffectPropertyChild(effect, prop, "value");
|
|
||||||
string name;
|
string name;
|
||||||
Uniform::Type uniformType = Uniform::FLOAT;
|
Uniform::Type uniformType = Uniform::FLOAT;
|
||||||
if (nameProp) {
|
if (nameProp) {
|
||||||
|
|||||||
@@ -594,7 +594,7 @@ initFromParameters(Effect* effect, const SGPropertyNode* prop, ObjType* obj,
|
|||||||
if (valProp->nChildren() == 0) {
|
if (valProp->nChildren() == 0) {
|
||||||
setter(obj, valProp->getValue<OSGParamType>());
|
setter(obj, valProp->getValue<OSGParamType>());
|
||||||
} else {
|
} else {
|
||||||
std::string propName = getGlobalProperty(prop, options);
|
std::string propName = getGlobalProperty(valProp, options);
|
||||||
ScalarChangeListener<OSGParamType, ObjType, F>* listener
|
ScalarChangeListener<OSGParamType, ObjType, F>* listener
|
||||||
= new ScalarChangeListener<OSGParamType, ObjType, F>(obj, setter,
|
= new ScalarChangeListener<OSGParamType, ObjType, F>(obj, setter,
|
||||||
propName);
|
propName);
|
||||||
|
|||||||
Reference in New Issue
Block a user