Revision: 53727
          http://brlcad.svn.sourceforge.net/brlcad/?rev=53727&view=rev
Author:   bob1961
Date:     2012-11-16 13:30:40 +0000 (Fri, 16 Nov 2012)
Log Message:
-----------
Reset the keypoint if using the mouse to drag/translate a primitive. This fixes 
the teleportation problem seen when translating a primitive after having set 
the keypoint.

Modified Paths:
--------------
    brlcad/trunk/src/mged/chgview.c
    brlcad/trunk/src/mged/sedit.h

Modified: brlcad/trunk/src/mged/chgview.c
===================================================================
--- brlcad/trunk/src/mged/chgview.c     2012-11-16 03:26:15 UTC (rev 53726)
+++ brlcad/trunk/src/mged/chgview.c     2012-11-16 13:30:40 UTC (rev 53727)
@@ -3782,6 +3782,9 @@
     }
 
     if (STATE == ST_S_EDIT) {
+       es_keyfixed = 0;
+       get_solid_keypoint(es_keypoint, &es_keytag,
+                          &es_int, es_mat);
        save_edflag = es_edflag;
 
        if (!SEDIT_TRAN) {

Modified: brlcad/trunk/src/mged/sedit.h
===================================================================
--- brlcad/trunk/src/mged/sedit.h       2012-11-16 03:26:15 UTC (rev 53726)
+++ brlcad/trunk/src/mged/sedit.h       2012-11-16 13:30:40 UTC (rev 53727)
@@ -254,6 +254,8 @@
 extern int es_edflag;          /* type of editing for this solid */
 extern int es_edclass;         /* type of editing class for this solid */
 extern int es_type;            /* COMGEOM solid type */
+extern int es_keyfixed;                /* keypoint specified by user */
+extern struct rt_db_internal es_int;
 
 extern mat_t es_mat;           /* accumulated matrix of path */
 extern mat_t es_invmat;                /* inverse of es_mat KAA */
@@ -265,6 +267,10 @@
 extern int arb_faces[5][24];   /* from edarb.c */
 extern int arb_planes[5][24];  /* from edarb.c */
 
+extern void get_solid_keypoint(fastf_t *pt,
+                              char **strp,
+                              struct rt_db_internal *ip,
+                              fastf_t *mat);
 /*
  * Local Variables:
  * mode: C

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


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to