From 00748360dbc0c3aa60864be7945d2a11bbffc48a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20V=C3=A1squez=20P=C3=A9rez?= Date: Mon, 10 Jul 2017 17:23:46 -0700 Subject: [PATCH] Fixed a bug that rendered end_tags to the wrong folder. --- yScripts/RenderToProject.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/yScripts/RenderToProject.jsx b/yScripts/RenderToProject.jsx index 3175b89..9c71514 100644 --- a/yScripts/RenderToProject.jsx +++ b/yScripts/RenderToProject.jsx @@ -74,15 +74,18 @@ function RenderToProject() var base_path = file_path.substr(0,search_gfx+gfx_string.length)+"/"+gfx_output_base; if ( search_endtag != -1 ){ base_path += "/" + endtag_output_extra; + }else{ + base_path += "/" + scene_output_extra; } - base_path += "/" + scene_output_extra + "/" + this.getTodayTag(); } if( search_vfx != -1 ){ - var base_path = file_path.substr(0,search_vfx+vfx_string.length)+"/"+vfx_output_base + "/" + this.getTodayTag();; + var base_path = file_path.substr(0,search_vfx+vfx_string.length)+"/"+vfx_output_base ;; } - return base_path; + alert(base_path); + + return base_path + "/" + this.getTodayTag(); }, setRenderToProjectPath : function( rqItem ){ if ( (rqItem.status == 3015) || (rqItem.status == 3013) ){