*** empty log message ***

This commit is contained in:
David Rose 2000-11-07 01:30:26 +00:00
parent e2d0c1d5e4
commit edd21b3f4e
3 changed files with 12 additions and 8 deletions

View File

@ -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);

View File

@ -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

View File

@ -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);
}
}
////////////////////////////////////////////////////////////////////