Page Menu
Home
Search
Configure Global Search
Log In
Files
F3282
reshadeall.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
maxime bourget (max)
Nov 13 2013, 1:09 PM
Size
2 KB
Subscribers
None
reshadeall.txt
View Options
Index: source/blender/python/api2_2x/Window.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Window.c,v
retrieving revision 1.39
diff -u -r1.39 Window.c
--- source/blender/python/api2_2x/Window.c 16 Jan 2006 02:06:02 -0000 1.39
+++ source/blender/python/api2_2x/Window.c 5 Mar 2006 10:22:03 -0000
@@ -68,6 +68,7 @@
/*****************************************************************************/
PyObject *M_Window_Redraw( PyObject * self, PyObject * args );
static PyObject *M_Window_RedrawAll( PyObject * self, PyObject * args );
+static PyObject *M_Window_ReshadeAll( PyObject * self, PyObject * args );
static PyObject *M_Window_QRedrawAll( PyObject * self, PyObject * args );
static PyObject *M_Window_DrawProgressBar( PyObject * self, PyObject * args );
static PyObject *M_Window_GetCursorPos( PyObject * self );
@@ -114,6 +115,9 @@
static char M_Window_Redraw_doc[] =
"() - Force a redraw of a specific Window Type (see Window.Types)";
+static char M_Window_ReshadeAll_doc[] =
+ "() - Recompute shading for all object (for shaded view)";
+
static char M_Window_RedrawAll_doc[] = "() - Redraw all windows";
static char M_Window_QRedrawAll_doc[] =
@@ -276,6 +280,7 @@
/*****************************************************************************/
struct PyMethodDef M_Window_methods[] = {
{"Redraw", M_Window_Redraw, METH_VARARGS, M_Window_Redraw_doc},
+ {"ReshadeAll", M_Window_ReshadeAll, METH_VARARGS, M_Window_ReshadeAll_doc},
{"RedrawAll", M_Window_RedrawAll, METH_VARARGS,
M_Window_RedrawAll_doc},
{"QRedrawAll", M_Window_QRedrawAll, METH_VARARGS,
@@ -420,6 +425,18 @@
static PyObject *M_Window_RedrawAll( PyObject * self, PyObject * args )
{
return M_Window_Redraw( self, Py_BuildValue( "(i)", -1 ) );
+}
+
+
+/*****************************************************************************/
+/* Function: M_Window_ReshadeAll */
+/* Python equivalent: Blender.Window.RedrawAll */
+/*****************************************************************************/
+static PyObject *M_Window_ReshadeAll( PyObject * self, PyObject * args )
+{
+ reshadeall_displist();
+ Py_INCREF( Py_None );
+ return Py_None;
}
/*****************************************************************************/
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9d/99/d038c98b9161aa83b9322bf9ded4
Event Timeline
Log In to Comment