Skip to content

Commit 0e80202

Browse files
committed
Fixed problem when drawing inside graphs in pd-vanilla
1 parent 19b3955 commit 0e80202

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pdlua.c

-1
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,6 @@ static int pdlua_class_new(lua_State *L)
935935
pdlua_widgetbehavior.w_visfn = pdlua_vis;
936936
pdlua_widgetbehavior.w_activatefn = pdlua_activate;
937937
class_setwidget(c, &pdlua_widgetbehavior);
938-
939938

940939
if (c) {
941940
/* a class with a "menu-open" method will have the "Open" item highlighted in the right-click menu */

pdlua_gfx.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ static int reset_transform(lua_State* L) {
545545

546546
static int can_draw(t_pdlua* obj)
547547
{
548-
return glist_isvisible(obj->canvas) && gobj_shouldvis(obj, obj->canvas);
548+
return gobj_shouldvis(obj, obj->canvas);
549549
}
550550

551551
static int free_path(lua_State* L)

0 commit comments

Comments
 (0)