Browse Source

closes https://github.com/assimp/assimp/issues/3198: make aiMaterial::GetName const.

Kim Kulling 4 năm trước cách đây
mục cha
commit
8c91d1a3cd
3 tập tin đã thay đổi với 379 bổ sung410 xóa
  1. 1 1
      code/Material/MaterialSystem.cpp
  2. 378 407
      include/assimp/material.h
  3. 0 2
      include/assimp/material.inl

+ 1 - 1
code/Material/MaterialSystem.cpp

@@ -402,7 +402,7 @@ aiMaterial::~aiMaterial() {
 }
 
 // ------------------------------------------------------------------------------------------------
-aiString aiMaterial::GetName() {
+aiString aiMaterial::GetName() const {
     aiString name;
     Get(AI_MATKEY_NAME, name);
 

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 378 - 407
include/assimp/material.h


+ 0 - 2
include/assimp/material.inl

@@ -5,8 +5,6 @@ Open Asset Import Library (assimp)
 
 Copyright (c) 2006-2020, assimp team
 
-
-
 All rights reserved.
 
 Redistribution and use of this software in source and binary forms,

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác