Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_node_ui_storage.hh
| Show All 10 Lines | |||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include <mutex> | |||||
| #include "BLI_hash.hh" | #include "BLI_hash.hh" | ||||
| #include "BLI_map.hh" | #include "BLI_map.hh" | ||||
| #include "BLI_session_uuid.h" | #include "BLI_session_uuid.h" | ||||
| #include "BLI_set.hh" | #include "BLI_set.hh" | ||||
| #include "DNA_ID.h" | #include "DNA_ID.h" | ||||
| #include "DNA_modifier_types.h" | #include "DNA_modifier_types.h" | ||||
| #include "DNA_session_uuid_types.h" | #include "DNA_session_uuid_types.h" | ||||
| ▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
| struct NodeUIStorage { | struct NodeUIStorage { | ||||
| blender::Vector<NodeWarning> warnings; | blender::Vector<NodeWarning> warnings; | ||||
| blender::Set<std::string> attribute_name_hints; | blender::Set<std::string> attribute_name_hints; | ||||
| }; | }; | ||||
| struct NodeTreeUIStorage { | struct NodeTreeUIStorage { | ||||
| blender::Map<NodeTreeEvaluationContext, blender::Map<std::string, NodeUIStorage>> context_map; | blender::Map<NodeTreeEvaluationContext, blender::Map<std::string, NodeUIStorage>> context_map; | ||||
| std::mutex context_map_mutex; | |||||
| }; | }; | ||||
| const NodeUIStorage *BKE_node_tree_ui_storage_get_from_context(const bContext *C, | const NodeUIStorage *BKE_node_tree_ui_storage_get_from_context(const bContext *C, | ||||
| const bNodeTree &ntree, | const bNodeTree &ntree, | ||||
| const bNode &node); | const bNode &node); | ||||
| void BKE_nodetree_ui_storage_free_for_context(bNodeTree &ntree, | void BKE_nodetree_ui_storage_free_for_context(bNodeTree &ntree, | ||||
| const NodeTreeEvaluationContext &context); | const NodeTreeEvaluationContext &context); | ||||
| Show All 11 Lines | |||||