Two fixes:

* For constraint mesh-targets, the check for whether the target mesh was in EditMode didn't check to see if the target mesh was the mesh in EditMode. 
Thanks jaguarandi for catching that!

* Bumped up size of buffer for grease-pencil drawing after seeing a program written in 1989 that had a 100 times larger buffer
This commit is contained in:
2008-07-26 00:43:29 +00:00
parent 1b3cf253ed
commit d979ebe11f
2 changed files with 3 additions and 3 deletions

View File

@@ -558,8 +558,8 @@ static void contarget_get_mesh_mat (Object *ob, char *substring, float mat[][4])
if (dgroup < 0) return;
/* get DerivedMesh */
if (G.obedit && G.editMesh) {
/* we are in editmode, so get a special derived mesh */
if ((G.obedit == ob) && (G.editMesh)) {
/* target is in editmode, so get a special derived mesh */
dm = CDDM_from_editmesh(G.editMesh, ob->data);
}
else {

View File

@@ -662,7 +662,7 @@ void gpencil_delete_menu (void)
/* ---------- 'Globals' and Defines ----------------- */
/* maximum sizes of gp-session buffer */
#define GP_STROKE_BUFFER_MAX 500
#define GP_STROKE_BUFFER_MAX 5000
/* ------ */