skip scene_armature_depsgraph_workaround when theres no armatures
This commit is contained in:
parent
8d5d6de761
commit
22754cf687
|
@ -517,7 +517,7 @@ SessionParams BlenderSync::get_session_params(BL::RenderEngine b_engine, BL::Use
|
|||
/* color managagement */
|
||||
#ifdef GLEW_MX
|
||||
/* When using GLEW MX we need to check whether we've got an OpenGL
|
||||
* context for crrent window. This is because command line rendering
|
||||
* context for current window. This is because command line rendering
|
||||
* doesn't have OpenGL context actually.
|
||||
*/
|
||||
if(glewGetContext() != NULL)
|
||||
|
|
|
@ -1261,7 +1261,7 @@ static void scene_depsgraph_hack(EvaluationContext *eval_ctx, Scene *scene, Scen
|
|||
static void scene_armature_depsgraph_workaround(Main *bmain)
|
||||
{
|
||||
Object *ob;
|
||||
if (!DAG_id_type_tagged(bmain, ID_OB)) {
|
||||
if (BLI_listbase_is_empty(&bmain->armature) || !DAG_id_type_tagged(bmain, ID_OB)) {
|
||||
return;
|
||||
}
|
||||
for (ob = bmain->object.first; ob; ob = ob->id.next) {
|
||||
|
|
Loading…
Reference in New Issue