Skip to content

Commit

Permalink
fix: restore node params draw
Browse files Browse the repository at this point in the history
  • Loading branch information
bdancer committed Mar 14, 2016
1 parent 223bbc8 commit c7a5aff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nodes/meta/image_texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import bpy

from vb30 import plugins as PluginUtils
from vb30.lib import DrawUtils
from vb30.ui import classes

from .. import utils as NodeUtils
Expand Down Expand Up @@ -112,9 +113,12 @@ def draw_buttons(self, context, layout):
mappingPluginID = get_mapping_plugin_id(self)
if mappingPluginID:
mapPluginDesc = PluginUtils.PLUGINS_ID[mappingPluginID]
mapPropGroup = getattr(self, mappingPluginID)
if hasattr(mapPluginDesc, 'nodeDraw'):
mapPluginDesc.nodeDraw(context, box, getattr(self, mappingPluginID))

mapPluginDesc.nodeDraw(context, box, mapPropGroup)
elif hasattr(mapPluginDesc, 'Widget') and 'node_widgets' in mapPluginDesc.Widget:
for widget in mapPluginDesc.Widget['node_widgets']:
DrawUtils.RenderWidget(context, mapPropGroup, layout, widget)

def draw_buttons_ext(self, context, layout):
box = layout.box()
Expand Down

0 comments on commit c7a5aff

Please sign in to comment.