Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9
This commit is contained in:
@ -531,13 +531,11 @@ class RenderPath {
|
||||
|
||||
if (!drawn) submitDraw(context);
|
||||
|
||||
#if lnx_debug
|
||||
// Callbacks to specific context
|
||||
if (contextEvents != null) {
|
||||
var ar = contextEvents.get(context);
|
||||
if (ar != null) for (i in 0...ar.length) ar[i](currentG, i, ar.length);
|
||||
}
|
||||
#end
|
||||
|
||||
end();
|
||||
}
|
||||
@ -597,7 +595,6 @@ class RenderPath {
|
||||
}
|
||||
}
|
||||
|
||||
#if lnx_debug
|
||||
static var contextEvents: Map<String, Array<Graphics->Int->Int->Void>> = null;
|
||||
public static function notifyOnContext(name: String, onContext: Graphics->Int->Int->Void) {
|
||||
if (contextEvents == null) contextEvents = new Map();
|
||||
@ -608,7 +605,13 @@ class RenderPath {
|
||||
}
|
||||
ar.push(onContext);
|
||||
}
|
||||
#end
|
||||
|
||||
public static function removeNotifyOnContext(name: String, onContext: Graphics->Int->Int->Void) {
|
||||
if (contextEvents != null) {
|
||||
var ar = contextEvents.get(name);
|
||||
if (ar != null) ar.remove(onContext);
|
||||
}
|
||||
}
|
||||
|
||||
#if rp_decals
|
||||
public function drawDecals(context: String) {
|
||||
|
||||
Reference in New Issue
Block a user