Ver código fonte

fixup! Use newer ContextMenu in shadergraph

Leonardo Jeanteur 4 anos atrás
pai
commit
eb5e908459
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6 1
      hide/view/shadereditor/ShaderEditor.hx

+ 6 - 1
hide/view/shadereditor/ShaderEditor.hx

@@ -205,7 +205,12 @@ class ShaderEditor extends hide.view.Graph {
 		parametersList.on("contextmenu", function(e) {
 			e.preventDefault();
 			e.stopPropagation();
-			new hide.comp.ContextMenu(newParamCtxMenu);
+			new hide.comp.ContextMenu([
+				{
+					label : "Add Parameter",
+					menu : newParamCtxMenu,
+				},
+			]);
 		});
 
 		element.find("#createParameter").on("click", function() {