From: Mircea Kitsune Date: Sat, 29 Oct 2011 21:00:31 +0000 (+0300) Subject: Add a menu button for showing mesh info, including listing of all bones X-Git-Tag: xonotic-v0.6.0~35^2~18^2~35 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4e7809349cffbf00cd69f467ec92eef995dbfb9e;p=xonotic%2Fxonotic-data.pk3dir.git Add a menu button for showing mesh info, including listing of all bones --- diff --git a/qcsrc/menu/xonotic/dialog_sandboxtools.c b/qcsrc/menu/xonotic/dialog_sandboxtools.c index 41a3cd209..cd49361b5 100644 --- a/qcsrc/menu/xonotic/dialog_sandboxtools.c +++ b/qcsrc/menu/xonotic/dialog_sandboxtools.c @@ -36,6 +36,7 @@ void XonoticSandboxToolsDialog_fill(entity me) me.TD(me, 1, 0.5, makeXonoticCommandButton(_("Attach to *"), '0 0 0', "sandbox object_attach set \"$menu_sandbox_attach_bone\"", 0)); me.TDempty(me, 0.1); me.TD(me, 1, 0.5, makeXonoticCommandButton(_("Detach from *"), '0 0 0', "sandbox object_attach remove", 0)); + me.TD(me, 1, 0.5, makeXonoticCommandButton(_("Show * mesh info"), '0 0 0', "sandbox object_info mesh; toggleconsole", 0)); me.TR(me); me.TR(me); me.TD(me, 1, 1.5, e = makeXonoticTextLabel(0, _("Visual object properties for *:"))); diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index ea0823ef7..7efd5bf16 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -117,7 +117,7 @@ entity sandbox_ObjectSpawn(float database) e.skin = 0; e.material = string_null; e.touch = sandbox_ObjectFunction_Touch; - //e.effects |= EF_SELECTABLE; + //e.effects |= EF_SELECTABLE; // don't do this all the time, maybe just when editing objects? if(!database) {