mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
formatting
This commit is contained in:
parent
20f4cf63c0
commit
d1e830f57b
@ -160,7 +160,8 @@ class DoInterestManager(DirectObject.DirectObject):
|
||||
"""
|
||||
assert self.notify.debugCall()
|
||||
if __debug__:
|
||||
DoInterestManager._debug_currentInterests.append((contextId, scopeId, parentId, zoneIdList))
|
||||
DoInterestManager._debug_currentInterests.append(
|
||||
(contextId, scopeId, parentId, zoneIdList))
|
||||
datagram = PyDatagram()
|
||||
# Add message type
|
||||
datagram.addUint16(CLIENT_ADD_INTEREST)
|
||||
|
@ -499,7 +499,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
# error not to open a window.
|
||||
raise StandardError, 'Could not open window.'
|
||||
|
||||
return (self.win != None)
|
||||
return self.win != None
|
||||
|
||||
def isMainWindowOpen(self):
|
||||
if self.win != None:
|
||||
|
@ -803,7 +803,7 @@ cull_bin_draw(const GraphicsEngine::Windows &wlist) {
|
||||
win->clear();
|
||||
|
||||
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);
|
||||
if (dr != (DisplayRegion *)NULL) {
|
||||
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
|
||||
// list.
|
||||
window->_internal_sort_index = _window_sort_index;
|
||||
_window_sort_index++;
|
||||
++_window_sort_index;
|
||||
|
||||
_windows_sorted = false;
|
||||
_windows.push_back(window);
|
||||
|
Loading…
x
Reference in New Issue
Block a user