Fixed warnings
This commit is contained in:
parent
9cd52fc54e
commit
ca4355974f
@ -298,7 +298,7 @@ JSONObject* createJSONAnimation(osgAnimation::Animation* anim, WriteVisitor* wri
|
|||||||
return json.release();
|
return json.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
JSONObject* createJSONUpdateMatrixTransform(osgAnimation::UpdateMatrixTransform& acb, WriteVisitor* writer)
|
JSONObject* createJSONUpdateMatrixTransform(osgAnimation::UpdateMatrixTransform& acb, WriteVisitor* /*writer*/)
|
||||||
{
|
{
|
||||||
osg::ref_ptr<JSONObject> json = new JSONObject;
|
osg::ref_ptr<JSONObject> json = new JSONObject;
|
||||||
json->addUniqueID();
|
json->addUniqueID();
|
||||||
|
@ -290,7 +290,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void applyCallback(osg::Node& node, JSONObject* json) {
|
void applyCallback(osg::Node& node, JSONObject* in_json) {
|
||||||
osg::ref_ptr<JSONArray> updateCallbacks = new JSONArray;
|
osg::ref_ptr<JSONArray> updateCallbacks = new JSONArray;
|
||||||
osg::ref_ptr<osg::Callback> nc = node.getUpdateCallback();
|
osg::ref_ptr<osg::Callback> nc = node.getUpdateCallback();
|
||||||
while (nc) {
|
while (nc) {
|
||||||
@ -361,7 +361,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!updateCallbacks->getArray().empty()) {
|
if (!updateCallbacks->getArray().empty()) {
|
||||||
json->getMaps()["UpdateCallbacks"] = updateCallbacks;
|
in_json->getMaps()["UpdateCallbacks"] = updateCallbacks;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user