Merge branch 'blender-v5.0-release'
Some checks failed
Close GitHub Pull Requests / Close Pull Requests (push) Has been cancelled
Some checks failed
Close GitHub Pull Requests / Close Pull Requests (push) Has been cancelled
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "BKE_context.hh"
|
||||
#include "BKE_library.hh"
|
||||
#include "BKE_main_invariants.hh"
|
||||
#include "BKE_node_tree_interface.hh"
|
||||
|
||||
@@ -332,6 +333,9 @@ class NodeTreeInterfaceView : public AbstractTreeView {
|
||||
|
||||
std::unique_ptr<AbstractViewItemDragController> NodeSocketViewItem::create_drag_controller() const
|
||||
{
|
||||
if (!ID_IS_EDITABLE(&nodetree_.id)) {
|
||||
return nullptr;
|
||||
}
|
||||
return std::make_unique<NodeTreeInterfaceDragController>(
|
||||
static_cast<NodeTreeInterfaceView &>(this->get_tree_view()), socket_.item, nodetree_);
|
||||
}
|
||||
@@ -343,6 +347,9 @@ std::unique_ptr<TreeViewItemDropTarget> NodeSocketViewItem::create_drop_target()
|
||||
|
||||
std::unique_ptr<AbstractViewItemDragController> NodePanelViewItem::create_drag_controller() const
|
||||
{
|
||||
if (!ID_IS_EDITABLE(&nodetree_.id)) {
|
||||
return nullptr;
|
||||
}
|
||||
return std::make_unique<NodeTreeInterfaceDragController>(
|
||||
static_cast<NodeTreeInterfaceView &>(this->get_tree_view()), panel_.item, nodetree_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user