Scripts:
- Campbell Barton updated his sel_same.py script; - Added to Mesh scripts a call to Window.EditMode(0) to leave editmode before changing meshes. BPython: - small doc fixes / updates; - added a call to undo_push_mesh inside Window.EditMode(0). Mesh scripts could change the mesh but not the editmesh -- that would then overwrite the changed mesh. Made all mesh scripts leave edit mode before changing a mesh.
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include <BIF_mywindow.h>
|
||||
#include <BSE_headerbuttons.h>
|
||||
#include <BSE_filesel.h>
|
||||
#include <BIF_editmesh.h> /* for undo_push_mesh() */
|
||||
#include <BIF_screen.h>
|
||||
#include <BIF_space.h>
|
||||
#include <BIF_drawtext.h>
|
||||
@@ -666,7 +667,6 @@ static PyObject *M_Window_SetViewQuat(PyObject *self, PyObject *args)
|
||||
{
|
||||
int ok = 0;
|
||||
float val[4];
|
||||
float *vec;
|
||||
|
||||
if (!G.vd) {
|
||||
Py_INCREF (Py_None);
|
||||
@@ -715,7 +715,6 @@ static PyObject *M_Window_SetViewOffset(PyObject *self, PyObject *args)
|
||||
{
|
||||
int ok = 0;
|
||||
float val[3];
|
||||
float *vec;
|
||||
|
||||
if (!G.vd) {
|
||||
Py_INCREF (Py_None);
|
||||
@@ -773,7 +772,10 @@ static PyObject *M_Window_EditMode(PyObject *self, PyObject *args)
|
||||
if (status) {
|
||||
if (!G.obedit) enter_editmode();
|
||||
}
|
||||
else if (G.obedit) exit_editmode(1);
|
||||
else if (G.obedit) {
|
||||
undo_push_mesh("From script"); /* use better solution after 2.34 */
|
||||
exit_editmode(1);
|
||||
}
|
||||
}
|
||||
|
||||
return Py_BuildValue("h", G.obedit?1:0);
|
||||
|
||||
@@ -20,7 +20,7 @@ The Blender Python API Reference
|
||||
- L{Draw} (*)
|
||||
- L{Effect}
|
||||
- L{Image} (*)
|
||||
- L{Ipo}
|
||||
- L{Ipo} (*)
|
||||
- L{Lamp} (*)
|
||||
- L{Lattice}
|
||||
- L{Library}
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
"""
|
||||
The Blender.Ipo submodule
|
||||
|
||||
B{New}: Ipo updates to both the program and bpython acess.
|
||||
|
||||
This module provides access to the Ipo Data in Blender. An Ipo is composed of
|
||||
several Ipocurves.
|
||||
|
||||
@@ -91,8 +93,8 @@ class Ipo:
|
||||
8. Key Ipo: Speed, 'Key 1' - 'Key 31'.
|
||||
9. Action Ipo: LocX, LocY, LocZ, SizeX, SizeY, SizeZ,
|
||||
QuatX, QuatY, QuatZ, QuatW.
|
||||
10.Sequence Ipo: Fac.
|
||||
11.Constraint Ipo: Inf.
|
||||
10. Sequence Ipo: Fac.
|
||||
11. Constraint Ipo: Inf.
|
||||
|
||||
@type curvename : string
|
||||
@rtype: IpoCurve object
|
||||
|
||||
@@ -400,7 +400,7 @@ class NMesh:
|
||||
@rtype: bool
|
||||
@return: True if successful or False if this NMesh wasn't linked to a real
|
||||
Blender Mesh yet (or was, but the Mesh had no keys).
|
||||
@warn: Currently the mesh keys from meshs that are grabbed with
|
||||
@warn: Currently the mesh keys from meshes that are grabbed with
|
||||
NMesh.GetRaw() or .GetRawFromObject() are preserved, so if you want to
|
||||
clear them or don't want them at all, remember to call this method. Of
|
||||
course NMeshes created with NMesh.New() don't have mesh keys until you
|
||||
|
||||
Reference in New Issue
Block a user