Revision: 56535
          http://sourceforge.net/p/brlcad/code/56535
Author:   brlcad
Date:     2013-08-04 21:22:01 +0000 (Sun, 04 Aug 2013)
Log Message:
-----------
looks like we can keep it even simpler and go through libged by calling 
redraw_visible_objects().

Modified Paths:
--------------
    brlcad/trunk/src/mged/clone.c

Modified: brlcad/trunk/src/mged/clone.c
===================================================================
--- brlcad/trunk/src/mged/clone.c       2013-08-04 21:11:13 UTC (rev 56534)
+++ brlcad/trunk/src/mged/clone.c       2013-08-04 21:22:01 UTC (rev 56535)
@@ -1056,12 +1056,7 @@
     if (ch == 'y') {
        struct clone_state state;
        struct directory **dps = (struct directory **)NULL;
-       char *vargs[3];
 
-       for (i = 0; i < 2; i++)
-           vargs[i] = (char *)bu_calloc(CLONE_BUFSIZE, sizeof(char), "alloc 
vargs[i]");
-       vargs[0][0] = 'e';
-
        state.interp = interp;
        state.incr = inc;
        state.n_copies = 1;
@@ -1096,10 +1091,9 @@
                state.src = dps[j];
                /* global dbip */
                dps[j] = copy_object(dbip, &rt_uniresource, &state);
-               bu_strlcpy(vargs[1], dps[j]->d_namep, CLONE_BUFSIZE);
 
                if (!no_draw || !is_dm_null()) {
-                   cmd_redraw_vlist(NULL, interp, 2, (const char **)vargs);
+                   redraw_visible_objects();
                    size_reset();
                    new_mats();
                    color_soltab();
@@ -1111,9 +1105,6 @@
        }
        fprintf(stdout, "\n");
        bu_free(dps, "free dps array");
-
-       for (i = 0; i < 2; i++)
-           bu_free(vargs[i], "free vargs[i]");
     }
 
     free(s.t);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to