forked from bartvdbraak/blender
Node Previews:
Removed USE_HIDDEN_PREVIEW from source code as it is now deprecated. The feature was introduced during project mango to quickly hide previews, now that the previews are hidden by default this feature has no need. Inside the DNA the flag is still visible in comment, this way no one will reuse that value as it could have some side effects Jeroen & Monique - At Mind -
This commit is contained in:
parent
7e5d2fee71
commit
8983f50a9a
@ -395,7 +395,6 @@ class NODE_PT_quality(bpy.types.Panel):
|
|||||||
col.prop(tree, "use_two_pass")
|
col.prop(tree, "use_two_pass")
|
||||||
col.prop(tree, "use_viewer_border")
|
col.prop(tree, "use_viewer_border")
|
||||||
col.prop(snode, "show_highlight")
|
col.prop(snode, "show_highlight")
|
||||||
col.prop(snode, "use_hidden_preview")
|
|
||||||
|
|
||||||
|
|
||||||
class NODE_UL_interface_sockets(bpy.types.UIList):
|
class NODE_UL_interface_sockets(bpy.types.UIList):
|
||||||
|
@ -90,9 +90,6 @@ bNode *node_add_node(const bContext *C, const char *idname, int type, float locx
|
|||||||
ntreeUpdateTree(bmain, snode->edittree);
|
ntreeUpdateTree(bmain, snode->edittree);
|
||||||
ED_node_set_active(bmain, snode->edittree, node);
|
ED_node_set_active(bmain, snode->edittree, node);
|
||||||
|
|
||||||
if (snode->flag & SNODE_USE_HIDDEN_PREVIEW)
|
|
||||||
node->flag &= ~NODE_PREVIEW;
|
|
||||||
|
|
||||||
snode_update(snode, node);
|
snode_update(snode, node);
|
||||||
|
|
||||||
if (snode->nodetree->type == NTREE_TEXTURE) {
|
if (snode->nodetree->type == NTREE_TEXTURE) {
|
||||||
|
@ -969,7 +969,7 @@ typedef enum eSpaceNode_Flag {
|
|||||||
SNODE_SHOW_B = (1 << 9),
|
SNODE_SHOW_B = (1 << 9),
|
||||||
SNODE_AUTO_RENDER = (1 << 5),
|
SNODE_AUTO_RENDER = (1 << 5),
|
||||||
SNODE_SHOW_HIGHLIGHT = (1 << 6),
|
SNODE_SHOW_HIGHLIGHT = (1 << 6),
|
||||||
SNODE_USE_HIDDEN_PREVIEW = (1 << 10),
|
// SNODE_USE_HIDDEN_PREVIEW = (1 << 10), DNA_DEPRECATED December2013
|
||||||
SNODE_NEW_SHADERS = (1 << 11),
|
SNODE_NEW_SHADERS = (1 << 11),
|
||||||
SNODE_PIN = (1 << 12),
|
SNODE_PIN = (1 << 12),
|
||||||
} eSpaceNode_Flag;
|
} eSpaceNode_Flag;
|
||||||
|
@ -3481,11 +3481,6 @@ static void rna_def_space_node(BlenderRNA *brna)
|
|||||||
RNA_def_property_ui_text(prop, "Highlight", "Highlight nodes that are being calculated");
|
RNA_def_property_ui_text(prop, "Highlight", "Highlight nodes that are being calculated");
|
||||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE_VIEW, NULL);
|
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE_VIEW, NULL);
|
||||||
|
|
||||||
prop = RNA_def_property(srna, "use_hidden_preview", PROP_BOOLEAN, PROP_NONE);
|
|
||||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", SNODE_USE_HIDDEN_PREVIEW);
|
|
||||||
RNA_def_property_ui_text(prop, "Hide Preview", "Hide preview for newly creating nodes");
|
|
||||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_NODE_VIEW, NULL);
|
|
||||||
|
|
||||||
/* the mx/my "cursor" in the node editor is used only by operators to store the mouse position */
|
/* the mx/my "cursor" in the node editor is used only by operators to store the mouse position */
|
||||||
prop = RNA_def_property(srna, "cursor_location", PROP_FLOAT, PROP_XYZ);
|
prop = RNA_def_property(srna, "cursor_location", PROP_FLOAT, PROP_XYZ);
|
||||||
RNA_def_property_array(prop, 2);
|
RNA_def_property_array(prop, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user