diff options
Diffstat (limited to 'source/blender/depsgraph/intern/node/deg_node_factory.cc')
-rw-r--r-- | source/blender/depsgraph/intern/node/deg_node_factory.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/source/blender/depsgraph/intern/node/deg_node_factory.cc b/source/blender/depsgraph/intern/node/deg_node_factory.cc index e6f2fd1841d..4a11ed2a4fb 100644 --- a/source/blender/depsgraph/intern/node/deg_node_factory.cc +++ b/source/blender/depsgraph/intern/node/deg_node_factory.cc @@ -26,21 +26,20 @@ namespace DEG { /* Global type registry */ -static DepsNodeFactory * -node_typeinfo_registry[static_cast<int>(NodeType::NUM_TYPES)] = {NULL}; +static DepsNodeFactory *node_typeinfo_registry[static_cast<int>(NodeType::NUM_TYPES)] = {NULL}; void register_node_typeinfo(DepsNodeFactory *factory) { - BLI_assert(factory != NULL); - const int type_as_int = static_cast<int>(factory->type()); - node_typeinfo_registry[type_as_int] = factory; + BLI_assert(factory != NULL); + const int type_as_int = static_cast<int>(factory->type()); + node_typeinfo_registry[type_as_int] = factory; } DepsNodeFactory *type_get_factory(const NodeType type) { - /* Look up type - at worst, it doesn't exist in table yet, and we fail. */ - const int type_as_int = static_cast<int>(type); - return node_typeinfo_registry[type_as_int]; + /* Look up type - at worst, it doesn't exist in table yet, and we fail. */ + const int type_as_int = static_cast<int>(type); + return node_typeinfo_registry[type_as_int]; } } // namespace DEG |