Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder_rna.h')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_rna.h72
1 files changed, 35 insertions, 37 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_rna.h b/source/blender/depsgraph/intern/builder/deg_builder_rna.h
index 5e121476087..e8dbd7fb523 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_rna.h
+++ b/source/blender/depsgraph/intern/builder/deg_builder_rna.h
@@ -41,58 +41,56 @@ class RNANodeQueryIDData;
* interested in a result of the given property or whether we are linking some
* dependency to that property. */
enum class RNAPointerSource {
- /* Query will return pointer to an entry operation of component which is
- * responsible for evaluation of the given property. */
- ENTRY,
- /* Query will return pointer to an exit operation of component which is
- * responsible for evaluation of the given property.
- * More precisely, it will return operation at which the property is known
- * to be evaluated. */
- EXIT,
+ /* Query will return pointer to an entry operation of component which is
+ * responsible for evaluation of the given property. */
+ ENTRY,
+ /* Query will return pointer to an exit operation of component which is
+ * responsible for evaluation of the given property.
+ * More precisely, it will return operation at which the property is known
+ * to be evaluated. */
+ EXIT,
};
/* A helper structure which wraps all fields needed to find a node inside of
* the dependency graph. */
class RNANodeIdentifier {
-public:
- RNANodeIdentifier();
-
- /* Check whether this identifier is valid and usable. */
- bool is_valid() const;
-
- ID *id;
- NodeType type;
- const char *component_name;
- OperationCode operation_code;
- const char *operation_name;
- int operation_name_tag;
+ public:
+ RNANodeIdentifier();
+
+ /* Check whether this identifier is valid and usable. */
+ bool is_valid() const;
+
+ ID *id;
+ NodeType type;
+ const char *component_name;
+ OperationCode operation_code;
+ const char *operation_name;
+ int operation_name_tag;
};
/* Helper class which performs optimized lookups of a node within a given
* dependency graph which satisfies given RNA pointer or RAN path. */
class RNANodeQuery {
-public:
- RNANodeQuery(Depsgraph *depsgraph);
- ~RNANodeQuery();
+ public:
+ RNANodeQuery(Depsgraph *depsgraph);
+ ~RNANodeQuery();
- Node *find_node(const PointerRNA *ptr,
- const PropertyRNA *prop,
- RNAPointerSource source);
+ Node *find_node(const PointerRNA *ptr, const PropertyRNA *prop, RNAPointerSource source);
-protected:
- Depsgraph *depsgraph_;
+ protected:
+ Depsgraph *depsgraph_;
- /* Indexed by an ID, returns RNANodeQueryIDData associated with that ID. */
- GHash *id_data_map_;
+ /* Indexed by an ID, returns RNANodeQueryIDData associated with that ID. */
+ GHash *id_data_map_;
- /* Construct identifier of the node which correspods given configuration
- * of RNA property. */
- RNANodeIdentifier construct_node_identifier(const PointerRNA *ptr,
- const PropertyRNA *prop,
- RNAPointerSource source);
+ /* Construct identifier of the node which correspods given configuration
+ * of RNA property. */
+ RNANodeIdentifier construct_node_identifier(const PointerRNA *ptr,
+ const PropertyRNA *prop,
+ RNAPointerSource source);
- /* Make sure ID data exists for the given ID, and returns it. */
- RNANodeQueryIDData *ensure_id_data(const ID *id);
+ /* Make sure ID data exists for the given ID, and returns it. */
+ RNANodeQueryIDData *ensure_id_data(const ID *id);
};
} // namespace DEG