mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
formatting
This commit is contained in:
parent
20f4cf63c0
commit
d1e830f57b
@ -160,7 +160,8 @@ class DoInterestManager(DirectObject.DirectObject):
|
|||||||
"""
|
"""
|
||||||
assert self.notify.debugCall()
|
assert self.notify.debugCall()
|
||||||
if __debug__:
|
if __debug__:
|
||||||
DoInterestManager._debug_currentInterests.append((contextId, scopeId, parentId, zoneIdList))
|
DoInterestManager._debug_currentInterests.append(
|
||||||
|
(contextId, scopeId, parentId, zoneIdList))
|
||||||
datagram = PyDatagram()
|
datagram = PyDatagram()
|
||||||
# Add message type
|
# Add message type
|
||||||
datagram.addUint16(CLIENT_ADD_INTEREST)
|
datagram.addUint16(CLIENT_ADD_INTEREST)
|
||||||
|
@ -499,7 +499,7 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
# error not to open a window.
|
# error not to open a window.
|
||||||
raise StandardError, 'Could not open window.'
|
raise StandardError, 'Could not open window.'
|
||||||
|
|
||||||
return (self.win != None)
|
return self.win != None
|
||||||
|
|
||||||
def isMainWindowOpen(self):
|
def isMainWindowOpen(self):
|
||||||
if self.win != None:
|
if self.win != None:
|
||||||
|
@ -803,7 +803,7 @@ cull_bin_draw(const GraphicsEngine::Windows &wlist) {
|
|||||||
win->clear();
|
win->clear();
|
||||||
|
|
||||||
int num_display_regions = win->get_num_active_display_regions();
|
int num_display_regions = win->get_num_active_display_regions();
|
||||||
for (int i = 0; i < num_display_regions; i++) {
|
for (int i = 0; i < num_display_regions; ++i) {
|
||||||
DisplayRegion *dr = win->get_active_display_region(i);
|
DisplayRegion *dr = win->get_active_display_region(i);
|
||||||
if (dr != (DisplayRegion *)NULL) {
|
if (dr != (DisplayRegion *)NULL) {
|
||||||
cull_bin_draw(win, dr);
|
cull_bin_draw(win, dr);
|
||||||
@ -1177,7 +1177,7 @@ do_add_window(GraphicsOutput *window, GraphicsStateGuardian *gsg,
|
|||||||
// us to assure that recently-added windows end up on the end of the
|
// us to assure that recently-added windows end up on the end of the
|
||||||
// list.
|
// list.
|
||||||
window->_internal_sort_index = _window_sort_index;
|
window->_internal_sort_index = _window_sort_index;
|
||||||
_window_sort_index++;
|
++_window_sort_index;
|
||||||
|
|
||||||
_windows_sorted = false;
|
_windows_sorted = false;
|
||||||
_windows.push_back(window);
|
_windows.push_back(window);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user