Skip to content

Commit

Permalink
Draw "Data" modifier in the "Chart" panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Griperis committed Feb 16, 2025
1 parent 1826234 commit c2bb0bc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions data_vis/geonodes/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,21 @@ def draw(self, context: bpy.types.Context) -> None:
layout.label(text="Active object is not a valid chart")
return

for mod in filter(
lambda m: m.type == "NODES"
and components.remove_duplicate_suffix(m.node_group.name) == "DV_Data",
obj.modifiers,
):
box = layout.box()
row = box.row()
row.prop(mod, "show_expanded", text="")
row.label(text=mod.name)
row.operator(
modifier_utils.DV_RemoveModifier.bl_idname, text="", icon="X"
).modifier_name = mod.name
if mod.show_expanded:
modifier_utils.draw_modifier_inputs(mod, box)

for mod in filter(
lambda m: m.type == "NODES"
and components.remove_duplicate_suffix(m.node_group.name).startswith("DV_")
Expand Down

0 comments on commit c2bb0bc

Please sign in to comment.