mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
pgui: Revert part of f2e488fd6b39a6fca54c0be79378955157a266de
This caused a regression due to a removal of update_frame invocation in single-threaded pipeline, needs to be revisited later on master branch
This commit is contained in:
parent
f3181bf684
commit
fa73657d03
@ -1006,13 +1006,10 @@ get_frame_style(int state) {
|
|||||||
void PGItem::
|
void PGItem::
|
||||||
set_frame_style(int state, const PGFrameStyle &style) {
|
set_frame_style(int state, const PGFrameStyle &style) {
|
||||||
LightReMutexHolder holder(_lock);
|
LightReMutexHolder holder(_lock);
|
||||||
|
// Get the state def node, mainly to ensure that this state is slotted and
|
||||||
slot_state_def(state);
|
// listed as having been defined.
|
||||||
|
NodePath &root = do_get_state_def(state);
|
||||||
if (_state_defs[state]._root.is_empty()) {
|
nassertv(!root.is_empty());
|
||||||
// Create a new node.
|
|
||||||
_state_defs[state]._root = NodePath("state_" + format_string(state));
|
|
||||||
}
|
|
||||||
|
|
||||||
_state_defs[state]._frame_style = style;
|
_state_defs[state]._frame_style = style;
|
||||||
_state_defs[state]._frame_stale = true;
|
_state_defs[state]._frame_stale = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user