===Python API===
Change to displayMode attribute to support the new render window options, and correct description in the documentation.
This commit is contained in:
@@ -81,12 +81,14 @@ def CloseRenderWindow():
|
||||
|
||||
def EnableDispView():
|
||||
"""
|
||||
Render in the 3d View area.
|
||||
Render in the 3d View area. B{Note} this method is deprecated;
|
||||
use the l{displayMode} attribute instead.
|
||||
"""
|
||||
|
||||
def EnableDispWin():
|
||||
"""
|
||||
Render in Render window.
|
||||
B{Note} this method is deprecated; use the l{displayMode} attribute instead.
|
||||
"""
|
||||
|
||||
def SetRenderWinPos(locationList):
|
||||
@@ -171,7 +173,8 @@ class RenderData:
|
||||
5, 8, 11, or 16.
|
||||
@type OSALevel: int
|
||||
@ivar displayMode: Render output in separate window or 3D view.
|
||||
Valid values are 0 (display in 3d view) or 1 (display in window).
|
||||
Valid values are 0 (display in image editor view), 1 (display in render
|
||||
window), or 2 (display full screen).
|
||||
@type displayMode: int
|
||||
@ivar threads: Render in two threads enabled.
|
||||
Also see B{THREADS} in L{Modes} constant dict.
|
||||
|
||||
@@ -1850,7 +1850,7 @@ static int RenderData_setDisplayMode( BPy_RenderData *self,
|
||||
PyObject *value )
|
||||
{
|
||||
return EXPP_setIValueRange( value, &G.displaymode,
|
||||
R_DISPLAYIMAGE, R_DISPLAYWIN, 'h' );
|
||||
R_DISPLAYIMAGE, R_DISPLAYSCREEN, 'h' );
|
||||
}
|
||||
|
||||
static PyObject *RenderData_getRenderPath( BPy_RenderData * self )
|
||||
|
||||
Reference in New Issue
Block a user