mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15719 from ricardoquesada/issue_15594
fix: add code/resources to reproduce issue_15594
This commit is contained in:
commit
ff058eebc4
|
@ -773,6 +773,9 @@
|
|||
4B5C5BB61CA114E100D55A14 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B5C5BB41CA114DB00D55A14 /* Security.framework */; };
|
||||
4B5C5BB71CA114E700D55A14 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B5C5BB41CA114DB00D55A14 /* Security.framework */; };
|
||||
4B5C5BB81CA114EE00D55A14 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B5C5BB41CA114DB00D55A14 /* Security.framework */; };
|
||||
500D1CD31CF4A48B00535D35 /* Bug-15594.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 500D1CD11CF4A48B00535D35 /* Bug-15594.cpp */; };
|
||||
500D1CD41CF4A48B00535D35 /* Bug-15594.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 500D1CD11CF4A48B00535D35 /* Bug-15594.cpp */; };
|
||||
500D1CD51CF4A48B00535D35 /* Bug-15594.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 500D1CD11CF4A48B00535D35 /* Bug-15594.cpp */; };
|
||||
5046AB4A1AF2A8D80060550B /* MaterialSystemTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5046AB481AF2A8D80060550B /* MaterialSystemTest.cpp */; };
|
||||
5046AB4B1AF2A8D80060550B /* MaterialSystemTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5046AB481AF2A8D80060550B /* MaterialSystemTest.cpp */; };
|
||||
5046AB5B1AF2C4180060550B /* Materials in Resources */ = {isa = PBXBuildFile; fileRef = 5046AB5A1AF2C4180060550B /* Materials */; };
|
||||
|
@ -2407,6 +2410,8 @@
|
|||
46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = cocos2d_libs.xcodeproj; sourceTree = "<group>"; };
|
||||
4B5C5BAA1CA1149900D55A14 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Security.framework; sourceTree = DEVELOPER_DIR; };
|
||||
4B5C5BB41CA114DB00D55A14 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS9.1.sdk/System/Library/Frameworks/Security.framework; sourceTree = DEVELOPER_DIR; };
|
||||
500D1CD11CF4A48B00535D35 /* Bug-15594.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = "Bug-15594.cpp"; sourceTree = "<group>"; };
|
||||
500D1CD21CF4A48B00535D35 /* Bug-15594.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Bug-15594.h"; sourceTree = "<group>"; };
|
||||
5046AB481AF2A8D80060550B /* MaterialSystemTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MaterialSystemTest.cpp; sourceTree = "<group>"; };
|
||||
5046AB491AF2A8D80060550B /* MaterialSystemTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MaterialSystemTest.h; sourceTree = "<group>"; };
|
||||
5046AB5A1AF2C4180060550B /* Materials */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Materials; path = "../tests/cpp-tests/Resources/Materials"; sourceTree = "<group>"; };
|
||||
|
@ -3572,6 +3577,8 @@
|
|||
59620E8E1921E5CF002021B6 /* Bug-Child.h */,
|
||||
850F8A221B5F3A4F00780603 /* Bug-12847.cpp */,
|
||||
850F8A231B5F3A4F00780603 /* Bug-12847.h */,
|
||||
500D1CD11CF4A48B00535D35 /* Bug-15594.cpp */,
|
||||
500D1CD21CF4A48B00535D35 /* Bug-15594.h */,
|
||||
);
|
||||
path = BugsTest;
|
||||
sourceTree = "<group>";
|
||||
|
@ -6875,6 +6882,7 @@
|
|||
1AC35BF518CECF0C00F37B72 /* HttpClientTest.cpp in Sources */,
|
||||
1AC35B4F18CECF0C00F37B72 /* ClickAndMoveTest.cpp in Sources */,
|
||||
29080DCF191B595E0066F8DF /* UISliderTest.cpp in Sources */,
|
||||
500D1CD31CF4A48B00535D35 /* Bug-15594.cpp in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
@ -7050,6 +7058,7 @@
|
|||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
507B42851C31E6070067B53E /* AppController.mm in Sources */,
|
||||
500D1CD51CF4A48B00535D35 /* Bug-15594.cpp in Sources */,
|
||||
507B42861C31E6070067B53E /* main.m in Sources */,
|
||||
507B42871C31E6070067B53E /* NativeOcClass.m in Sources */,
|
||||
507B42881C31E6070067B53E /* js_Effect3D_bindings.cpp in Sources */,
|
||||
|
@ -7180,6 +7189,7 @@
|
|||
1AC35C0418CECF0C00F37B72 /* FileUtilsTest.cpp in Sources */,
|
||||
1AC35B5C18CECF0C00F37B72 /* CurlTest.cpp in Sources */,
|
||||
1AC35C0018CECF0C00F37B72 /* CustomTableViewCell.cpp in Sources */,
|
||||
500D1CD41CF4A48B00535D35 /* Bug-15594.cpp in Sources */,
|
||||
1AC35BF018CECF0C00F37B72 /* CCControlSwitchTest.cpp in Sources */,
|
||||
1AC35B2C18CECF0C00F37B72 /* BaseTest.cpp in Sources */,
|
||||
1AC35C9818CECF1400F37B72 /* main.m in Sources */,
|
||||
|
|
|
@ -47,6 +47,7 @@ set(TESTS_SRC
|
|||
Classes/BugsTest/Bug-899.cpp
|
||||
Classes/BugsTest/Bug-914.cpp
|
||||
Classes/BugsTest/Bug-12847.cpp
|
||||
Classes/BugsTest/Bug-15594.cpp
|
||||
Classes/BugsTest/Bug-Child.cpp
|
||||
Classes/BugsTest/BugsTest.cpp
|
||||
Classes/Camera3DTest/Camera3DTest.cpp
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
//
|
||||
// Bug-15594.cpp
|
||||
// cocos2d_tests
|
||||
//
|
||||
// Created by Ricardo Quesada on 5/24/16.
|
||||
//
|
||||
//
|
||||
|
||||
// https://github.com/cocos2d/cocos2d-x/pull/15594
|
||||
|
||||
#include "Bug-15594.h"
|
||||
|
||||
|
||||
USING_NS_CC;
|
||||
|
||||
bool Bug15594Layer::init()
|
||||
{
|
||||
if (BugsTestBase::init())
|
||||
{
|
||||
auto sprite3d = Sprite3D::create("Images/bugs/bug15594.c3t", "Images/bugs/bug15594.jpg");
|
||||
addChild(sprite3d);
|
||||
auto size = Director::getInstance()->getWinSize();
|
||||
sprite3d->setPosition(size/2);
|
||||
|
||||
auto animation = Animation3D::create("Images/bugs/bug15594.c3t");
|
||||
auto animate = Animate3D::create(animation);
|
||||
auto repeate = RepeatForever::create(animate);
|
||||
sprite3d->runAction(repeate);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
// https://github.com/cocos2d/cocos2d-x/pull/15594
|
||||
#ifndef __cocos2d_tests__Bug_15594__
|
||||
#define __cocos2d_tests__Bug_15594__
|
||||
|
||||
#include "BugsTest.h"
|
||||
|
||||
class Bug15594Layer : public BugsTestBase
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(Bug15594Layer);
|
||||
|
||||
virtual bool init() override;
|
||||
};
|
||||
|
||||
#endif /* defined(__cocos2d_tests__Bug_15594__) */
|
|
@ -12,6 +12,7 @@
|
|||
#include "Bug-Child.h"
|
||||
#include "Bug-CCDrawNode.h"
|
||||
#include "Bug-PageViewLayout.h"
|
||||
#include "Bug-15594.h"
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
||||
#include "Bug-14327.h"
|
||||
|
@ -33,6 +34,7 @@ BugsTests::BugsTests()
|
|||
ADD_TEST_CASE(BugDrawNodeLayer);
|
||||
ADD_TEST_CASE(BugPageViewLayer);
|
||||
ADD_TEST_CASE(Bug12847Layer);
|
||||
ADD_TEST_CASE(Bug15594Layer);
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
||||
ADD_TEST_CASE(Bug14327Layer);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
After Width: | Height: | Size: 422 KiB |
|
@ -33,6 +33,7 @@ LOCAL_SRC_FILES := main.cpp \
|
|||
../../../Classes/BugsTest/Bug-899.cpp \
|
||||
../../../Classes/BugsTest/Bug-914.cpp \
|
||||
../../../Classes/BugsTest/Bug-12847.cpp \
|
||||
../../../Classes/BugsTest/Bug-15594.cpp \
|
||||
../../../Classes/BugsTest/Bug-Child.cpp \
|
||||
../../../Classes/BugsTest/BugsTest.cpp \
|
||||
../../../Classes/Camera3DTest/Camera3DTest.cpp \
|
||||
|
|
|
@ -33,6 +33,7 @@ LOCAL_SRC_FILES := main.cpp \
|
|||
../../Classes/BugsTest/Bug-899.cpp \
|
||||
../../Classes/BugsTest/Bug-914.cpp \
|
||||
../../Classes/BugsTest/Bug-12847.cpp \
|
||||
../../Classes/BugsTest/Bug-15594.cpp \
|
||||
../../Classes/BugsTest/Bug-Child.cpp \
|
||||
../../Classes/BugsTest/BugsTest.cpp \
|
||||
../../Classes/Camera3DTest/Camera3DTest.cpp \
|
||||
|
|
|
@ -302,6 +302,7 @@
|
|||
<ClInclude Include="..\Classes\Box2DTestBed\Tests\Web.h" />
|
||||
<ClInclude Include="..\Classes\Box2DTest\Box2dTest.h" />
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-12847.h" />
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-15594.h" />
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-CCDrawNode.h" />
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-PageViewLayout.h" />
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-1159.h" />
|
||||
|
@ -496,6 +497,7 @@
|
|||
<ClCompile Include="..\Classes\Box2DTestBed\TestEntries.cpp" />
|
||||
<ClCompile Include="..\Classes\Box2DTest\Box2dTest.cpp" />
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-12847.cpp" />
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-15594.cpp" />
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-CCDrawNode.cpp" />
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-PageViewLayout.cpp" />
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-1159.cpp" />
|
||||
|
@ -659,4 +661,4 @@
|
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -774,6 +774,9 @@
|
|||
<ClCompile Include="..\Classes\BugsTest\Bug-12847.cpp">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-15594.cpp">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Classes\CurlTest\CurlTest.cpp">
|
||||
<Filter>Classes\CurlTest</Filter>
|
||||
</ClCompile>
|
||||
|
@ -1412,6 +1415,9 @@
|
|||
<ClInclude Include="..\Classes\BugsTest\Bug-12847.h">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-15594.h">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Classes\CurlTest\CurlTest.h">
|
||||
<Filter>Classes\CurlTest</Filter>
|
||||
</ClInclude>
|
||||
|
@ -1474,4 +1480,4 @@
|
|||
<Filter>Assets</Filter>
|
||||
</Image>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -152,6 +152,7 @@ xcopy "$(OutDir)..\*.dll" "$(OutDir)" /D /Y</Command>
|
|||
<ClCompile Include="..\Classes\BaseTest.cpp" />
|
||||
<ClCompile Include="..\Classes\BillBoardTest\BillBoardTest.cpp" />
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-12847.cpp" />
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-15594.cpp" />
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-14327.cpp" />
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-CCDrawNode.cpp" />
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-Child.cpp" />
|
||||
|
@ -306,6 +307,7 @@ xcopy "$(OutDir)..\*.dll" "$(OutDir)" /D /Y</Command>
|
|||
<ClInclude Include="..\Classes\Box2DTestBed\Tests\MobileBalanced.h" />
|
||||
<ClInclude Include="..\Classes\Box2DTestBed\Tests\MotorJoint.h" />
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-12847.h" />
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-15594.h" />
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-14327.h" />
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-CCDrawNode.h" />
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-Child.h" />
|
||||
|
|
|
@ -784,6 +784,9 @@
|
|||
<ClCompile Include="..\Classes\BugsTest\Bug-12847.cpp">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-15594.cpp">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Classes\BugsTest\Bug-14327.cpp">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClCompile>
|
||||
|
@ -1431,6 +1434,9 @@
|
|||
<ClInclude Include="..\Classes\BugsTest\Bug-12847.h">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-15594.h">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Classes\BugsTest\Bug-14327.h">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClInclude>
|
||||
|
@ -1441,4 +1447,4 @@
|
|||
<Filter>Classes\UITest\CocostudioGUISceneTest\UITabContorlTest</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-1159.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-1174.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-12847.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-15594.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-350.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-422.cpp" />
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-458\Bug-458.cpp" />
|
||||
|
@ -244,6 +245,7 @@
|
|||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-1159.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-1174.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-12847.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-15594.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-350.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-422.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-458\Bug-458.h" />
|
||||
|
@ -414,4 +416,4 @@
|
|||
<None Include="@(_CustomResource)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -629,6 +629,9 @@
|
|||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-12847.cpp">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-15594.cpp">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\Classes\DownloaderTest\DownloaderTest.cpp">
|
||||
<Filter>Classes\DownloaderTest</Filter>
|
||||
</ClCompile>
|
||||
|
@ -1421,6 +1424,9 @@
|
|||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-12847.h">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\BugsTest\Bug-15594.h">
|
||||
<Filter>Classes\BugsTest</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\DownloaderTest\DownloaderTest.h">
|
||||
<Filter>Classes\DownloaderTest</Filter>
|
||||
</ClInclude>
|
||||
|
@ -1431,4 +1437,4 @@
|
|||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\UITest\CocoStudioGUITest\GUIEditorTest.h" />
|
||||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\Classes\UITest\CocoStudioGUITest\UIScene_Editor.h" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
Loading…
Reference in New Issue