*** empty log message ***
This commit is contained in:
parent
e2d0c1d5e4
commit
edd21b3f4e
|
|
@ -9,10 +9,10 @@
|
|||
#include <dconfig.h>
|
||||
|
||||
Configure(config_text);
|
||||
|
||||
NotifyCategory &text_cat = *Notify::ptr()->get_category(":text");
|
||||
NotifyCategoryDef(text, "");
|
||||
|
||||
ConfigureFn(config_text) {
|
||||
TextNode::init_type();
|
||||
}
|
||||
|
||||
const bool flatten_text = config_text.GetBool("flatten-text", true);
|
||||
|
|
|
|||
|
|
@ -7,10 +7,12 @@
|
|||
#define CONFIG_TEXT_H
|
||||
|
||||
#include <pandabase.h>
|
||||
#include <notify.h>
|
||||
#include <notifyCategoryProxy.h>
|
||||
|
||||
// Configure variables for text package.
|
||||
class DSearchPath;
|
||||
|
||||
extern NotifyCategory &text_cat;
|
||||
NotifyCategoryDecl(text, EXPCL_PANDA, EXPTP_PANDA);
|
||||
|
||||
extern const bool flatten_text;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -469,9 +469,11 @@ rebuild() {
|
|||
// Now flatten our hierarchy to get rid of the transforms we put in,
|
||||
// applying them to the vertices.
|
||||
|
||||
SceneGraphReducer gr(RenderRelation::get_class_type());
|
||||
gr.apply_transitions(_root);
|
||||
gr.flatten(_root, true);
|
||||
if (flatten_text) {
|
||||
SceneGraphReducer gr(RenderRelation::get_class_type());
|
||||
gr.apply_transitions(_root);
|
||||
gr.flatten(_root, true);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Reference in New Issue