Depsgraph: Remove unsued node flag
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 25 Jul 2017 12:06:17 +0000 (14:06 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 25 Jul 2017 12:06:36 +0000 (14:06 +0200)
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
source/blender/depsgraph/intern/nodes/deg_node_operation.h

index 93db8724dcee38e6d4617b782ed3f7e393104812..f69d098cca48f826a47aa01dc90b92e7c34a056f 100644 (file)
@@ -560,7 +560,6 @@ void DepsgraphNodeBuilder::build_animdata(ID *id)
  */
 OperationDepsNode *DepsgraphNodeBuilder::build_driver(ID *id, FCurve *fcu)
 {
-       ChannelDriver *driver = fcu->driver;
        ID *id_cow = get_cow_id(id);
 
        /* Create data node for this driver */
@@ -584,11 +583,6 @@ OperationDepsNode *DepsgraphNodeBuilder::build_driver(ID *id, FCurve *fcu)
                                               fcu->array_index);
        }
 
-       /* tag "scripted expression" drivers as needing Python (due to GIL issues, etc.) */
-       if (driver->type == DRIVER_TYPE_PYTHON) {
-               driver_op->flag |= DEPSOP_FLAG_USES_PYTHON;
-       }
-
        /* return driver node created */
        return driver_op;
 }
index de90f5db397dadc6f49c466c0f03f44fa30d892b..d8203540fc5ca4b02c715b6efb017884090f675e 100644 (file)
@@ -45,11 +45,6 @@ typedef enum eDepsOperation_Flag {
 
        /* node was directly modified, causing need for update */
        DEPSOP_FLAG_DIRECTLY_MODIFIED  = (1 << 1),
-
-       /* Operation is evaluated using CPython; has GIL and security
-        * implications...
-        */
-       DEPSOP_FLAG_USES_PYTHON        = (1 << 2),
 } eDepsOperation_Flag;
 
 /* Atomic Operation - Base type for all operations */