mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
more debugging
This commit is contained in:
parent
a204258dd3
commit
00cc234397
@ -91,11 +91,18 @@ sub CTAttachMod {
|
|||||||
$newenv{$_[0]} = &CTSpoolEnv( $_[0] ) ;
|
$newenv{$_[0]} = &CTSpoolEnv( $_[0] ) ;
|
||||||
}
|
}
|
||||||
if ( ! ( $newenv{$_[0]} =~ /$_[1]/ )) {
|
if ( ! ( $newenv{$_[0]} =~ /$_[1]/ )) {
|
||||||
|
&CTUDebug( "'" . $_[1] . "' exists in " . $_[0] .
|
||||||
|
" testing for simple modification\n" ) ;
|
||||||
# if it's in there already, we're done before we started.
|
# if it's in there already, we're done before we started.
|
||||||
if ( $_[1] =~ /^$_[2]/ ) {
|
if ( $_[1] =~ /^$_[2]/ ) {
|
||||||
|
&CTUDebug( "new value contains root '" . $_[2] .
|
||||||
|
"', may not be able to do simple edit\n" ) ;
|
||||||
# damn, might need to do an in-place edit
|
# damn, might need to do an in-place edit
|
||||||
local( $curroot ) = $ENV{$_[3]} ;
|
local( $curroot ) = $ENV{$_[3]} ;
|
||||||
|
&CTUDebug( "current root for '" . $_[3] . "' is '" .
|
||||||
|
$curroot . "'\n" ) ;
|
||||||
if ( $curroot eq "" ) {
|
if ( $curroot eq "" ) {
|
||||||
|
&CTUDebug( "can do simple edit\n" ) ;
|
||||||
$dosimple = 1 ;
|
$dosimple = 1 ;
|
||||||
} else {
|
} else {
|
||||||
local( $test ) = $_[1] ;
|
local( $test ) = $_[1] ;
|
||||||
@ -110,10 +117,14 @@ sub CTAttachMod {
|
|||||||
$_[1] . "' yielding '" . $foo . "'\n" ) ;
|
$_[1] . "' yielding '" . $foo . "'\n" ) ;
|
||||||
$newenv{$_[0]} = $foo ;
|
$newenv{$_[0]} = $foo ;
|
||||||
} else {
|
} else {
|
||||||
|
&CTUDebug( "'" . $test . "' did not appear in $_[0]." .
|
||||||
|
" Simple edit\n" ) ;
|
||||||
$dosimple = 1 ;
|
$dosimple = 1 ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
&CTUDebug( "new value does not contain root '" . $_[2] .
|
||||||
|
"', can do simple edit\n" ) ;
|
||||||
# don't have to sweat in-place edits
|
# don't have to sweat in-place edits
|
||||||
$dosimple = 1 ;
|
$dosimple = 1 ;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user