core: Fix DO render tree display
This commit is contained in:
parent
e36b03bce9
commit
5ee3b821dd
|
@ -1416,9 +1416,10 @@ pub trait TDisplayObject<'gc>:
|
||||||
|
|
||||||
#[cfg(feature = "avm_debug")]
|
#[cfg(feature = "avm_debug")]
|
||||||
fn display_render_tree(&self, depth: usize) {
|
fn display_render_tree(&self, depth: usize) {
|
||||||
let self_str = format!("{self:?}");
|
let mut self_str = &*format!("{self:?}");
|
||||||
let paren = self_str.find('(').unwrap();
|
if let Some(end_char) = self_str.find(|c: char| !c.is_ascii_alphanumeric()) {
|
||||||
let self_str = &self_str[..paren];
|
self_str = &self_str[..end_char];
|
||||||
|
}
|
||||||
|
|
||||||
let bounds = self.world_bounds();
|
let bounds = self.world_bounds();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue