]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a menu button for showing mesh info, including listing of all bones
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 29 Oct 2011 21:00:31 +0000 (00:00 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 29 Oct 2011 21:00:31 +0000 (00:00 +0300)
qcsrc/menu/xonotic/dialog_sandboxtools.c
qcsrc/server/mutators/sandbox.qc

index 41a3cd209ad4cdc7da2b64e2781527c033ac061c..cd49361b5c0faa6e545b8abfda4aab150b9a9505 100644 (file)
@@ -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 *:")));
index ea0823ef73346e1f0806c294135cec7230fb0dc2..7efd5bf1607cf0ef0bc2ebd6add62e1997f96fef 100644 (file)
@@ -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)
        {